package com.lvmama.rhino.pojo.monitor;

import java.util.Date;

import com.lvmama.rhino.pojo.BasePojo;

/**
 * 接口监控
 * @author wxlizhi
 *
 */
public class MonitorApi extends BasePojo{

    /**
     * 
     */
    private static final long serialVersionUID = -4255548214343514381L;
    
    /**
     * 接口名
     */
    private String apiName;
    
    /**
     * 接口版本
     */
    private String apiVersion;
    
    /**
     * 方法
     */
    private Integer method;
    
    /**
     * 运营商
     */
    private String operators;
    
    /**
     * 平均首包时间
     */
    private Double avgFirstPackageTime;
    
    /**
     * 接口平均传输时间
     */
    private Double avgTransferTime;
    
    /**
     * 数据包平均大小
     */
    private Double avgPackageSize;
    
    /**
     * 接口失败次数
     */
    private Long apiFailAmount;
    
    /**
     * 接口调用量
     */
    private Long amount;
    
    /**
     * APP类型
     */
    private String appType;
    
    /**
     * 操作时间（年月日）
     */
    private Date operDate;
    
    /**
     * 网络类型 2g,3g,4g,wifi,NONE
     */
    private String networkType;
    
    /**
     * 平均接口内部耗时
     */
    private Double avgApiTime;
    
    /**
     * 平均总耗时(平均首包时长+平均传输时长)
     */
    private Double avgTotalApiTime;
    
    /**
     * 成功率
     */
    private String successRate;

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public String getApiVersion() {
        return apiVersion;
    }

    public void setApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
    }

    public Integer getMethod() {
        return method;
    }

    public void setMethod(Integer method) {
        this.method = method;
    }

    public String getOperators() {
        return operators;
    }

    public void setOperators(String operators) {
        this.operators = operators;
    }

    public Double getAvgFirstPackageTime() {
        return avgFirstPackageTime;
    }

    public void setAvgFirstPackageTime(Double avgFirstPackageTime) {
        this.avgFirstPackageTime = avgFirstPackageTime;
    }

    public Double getAvgTransferTime() {
        return avgTransferTime;
    }

    public void setAvgTransferTime(Double avgTransferTime) {
        this.avgTransferTime = avgTransferTime;
    }

    public Double getAvgPackageSize() {
        return avgPackageSize;
    }

    public void setAvgPackageSize(Double avgPackageSize) {
        this.avgPackageSize = avgPackageSize;
    }

    public Long getApiFailAmount() {
        return apiFailAmount;
    }

    public void setApiFailAmount(Long apiFailAmount) {
        this.apiFailAmount = apiFailAmount;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public Date getOperDate() {
        return operDate;
    }

    public void setOperDate(Date operDate) {
        this.operDate = operDate;
    }

    public String getNetworkType() {
        return networkType;
    }

    public void setNetworkType(String networkType) {
        this.networkType = networkType;
    }

    public Double getAvgApiTime() {
        return avgApiTime;
    }

    public void setAvgApiTime(Double avgApiTime) {
        this.avgApiTime = avgApiTime;
    }

    public String getSuccessRate() {
        return successRate;
    }

    public void setSuccessRate(String successRate) {
        this.successRate = successRate;
    }

    public Double getAvgTotalApiTime() {
        return avgTotalApiTime;
    }

    public void setAvgTotalApiTime(Double avgTotalApiTime) {
        this.avgTotalApiTime = avgTotalApiTime;
    }
    
}
